package model;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the typecours database table.
 * 
 */
@Entity
@Table(name="typecours")
@NamedQuery(name="Typecour.findAll", query="SELECT t FROM Typecour t")
public class Typecour implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int idType;

	private String intitule;

	private int nbrHeure;

	//bi-directional many-to-one association to Module
	@ManyToOne
	@JoinColumn(name="idModule")
	private Module module;

	public Typecour() {
	}

	public int getIdType() {
		return this.idType;
	}

	public void setIdType(int idType) {
		this.idType = idType;
	}

	public String getIntitule() {
		return this.intitule;
	}

	public void setIntitule(String intitule) {
		this.intitule = intitule;
	}

	public int getNbrHeure() {
		return this.nbrHeure;
	}

	public void setNbrHeure(int nbrHeure) {
		this.nbrHeure = nbrHeure;
	}

	public Module getModule() {
		return this.module;
	}

	public void setModule(Module module) {
		this.module = module;
	}

}